package com.cmc.cloud.cmclink.doc.vo.specialcargooogvo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 港口和码头框架箱最大重量及尺寸维护 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
public class PortTerminalMaxArgBaseVO {

    private Long id;

    @Schema(description = "港口", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{portterminalmaxarg.port.notblank}")
    @Length(max = 5, message = "{portterminalmaxarg.port.length}")
    private String port;

    @Schema(description = "码头")
    @NotBlank(message = "{portterminalmaxarg.terminalCode.notblank}")
    @Length(max = 9, message = "{portterminalmaxarg.terminalcode.length}")
    private String terminalCode;

    @Schema(description = "箱型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotBlank(message = "{portterminalmaxarg.cntrtype.notblank}")
    @Length(max = 2, message = "{portterminalmaxarg.cntrtype.length}")
    private String cntrType;

    @Schema(description = "箱尺寸", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{portterminalmaxarg.cntrsize.notblank}")
    @Length(max = 2, message = "{portterminalmaxarg.cntrsize.length}")
    private String cntrSize;

    @Schema(description = "最大重量", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal maxWgt;

    @Schema(description = "超长")
    private Integer overallLength;

    @Schema(description = "超宽")
    private Integer overallWidth;

    @Schema(description = "超高")
    private Integer overallHeight;

    @Schema(description = "前超")
    private Integer overForward;

    @Schema(description = "后超")
    private Integer overAfter;

    @Schema(description = "左超")
    private Integer overLeft;

    @Schema(description = "右超")
    private Integer overRight;

    @Schema(description = "上超")
    private Integer overHeight;

    @Schema(description = "备注", example = "随便")
    @Length(max = 200, message = "{portterminalmaxarg.remark.length}")
    private String remark;

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "portterminalmaxarg.enable.notnull")
    private Boolean enable;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @Schema(description = "创建人")
    private String creator;

    @Schema(description = "操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @Schema(description = "操作人")
    private String updater;
}
